package cn.initcap.designpattern.pattern.behavioral.interpreter;

/**
 * 解释器模式
 *
 * @author initcap
 * @date Created in 2018/10/14 PM7:09.
 */
public class Test {

    public static void main(String[] args) {
        String initcapInputStr = "6 100 11 + *";
        InitcapExpressionParser expressionParser = new InitcapExpressionParser();
        int result = expressionParser.parse(initcapInputStr);
        System.out.println("解释器计算结果: " + result);
    }
}
